				<div class="section">
                 <script type="text/javascript">
					function check(){
						if(document.sac.tour_name.value == ""){
							alert("Please enter tour name!");
							document.sac.tour_name.focus();
							return false;
						}
						if(isNaN(document.sac.tour_order.value)){
							alert("Tour order only number!");
							document.sac.tour_order.focus();
							return false;
						}else{
							return true;
						}
					}
					function hide(){
						document.getElementById("imgdeal").style.display= "none";
					}
					function show(){
						document.getElementById("imgdeal").style.display= "block";
					}
				</script>
                <script type="text/javascript">
					$(document).ready(function(){
						$obj 	= $("#cate_id");
						$show 	= $("#show_cagories");
						$obj.change(function(){
							$val = $(this).val();
							$.ajax({
								"url"   : "<?php echo base_url(); ?>admin/tours/getcago",
								"type"  : "POST",
								"data"  : "val="+$val,
								"async" : false,
								success : function(result){
									$show.html(result);
								} 
							});
						});
					});
                </script>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Add tour</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->				
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->
							</div>
				<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper" style="background:none;">
								<div class="table_wrapper_inner">
                                	<div class="error_red"><?php if(isset($error)) { echo "<p>".$error."</p>"; } echo validation_errors(); ?></div>
                                    <form action="<?php echo base_url()?>admin/tours/update/<?php echo $getdata['tour_id']?>" method="post" name="sac" onsubmit="return check()" enctype="multipart/form-data">
                                    	 <div class="form_items">
                                    		<div class="form_items_left">Tour name <span class="reds">*</span></div>
                                        	<div class="form_items_right"><input type="text" name="tour_name" value="<?php echo $getdata['tour_name']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour code</div>
                                        	<div class="form_items_right"><input type="text" name="tour_code" value="<?php echo $getdata['tour_code']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour type</div>
                                        	<div class="form_items_right"><input type="text" name="tour_type" value="<?php echo $getdata['tour_type']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour destinations</div>
                                        	<div class="form_items_right"><input type="text" name="tour_destina" value="<?php echo $getdata['tour_destina']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Star number<span class="reds">*</span></div>
                                        	<div class="form_items_right"><input type="text" name="tour_star" value="<?php echo $getdata['tour_star']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Order by</div>
                                        	<div class="form_items_right"><input name="tour_order" type="text" value="<?php echo $getdata['tour_order']?>" size="35"></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Rate Price</div>
                                        	<div class="form_items_right"><input name="tour_price_old" type="text" value="<?php echo $getdata['tour_price_old']?>" size="35"></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Price promotion</div>
                                        	<div class="form_items_right"><input name="tour_price" type="text" value="<?php echo $getdata['tour_price']?>" size="35"></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Hot tour</div>
                                        	<div class="form_items_right">
                                            	<input type="radio" value="1" onclick="show()" name="tour_show" <?php if($getdata['tour_show'] == 1){ echo "checked='checked'";} ?> />Yes
                                                <input type="radio" value="0" onclick="hide()" name="tour_show" <?php if($getdata['tour_show'] == 0){ echo "checked='checked'";} ?> />No
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Hot deal image</div>
                                        	<div class="form_items_right">
                                            	<?php
												if($getdata['tour_image_deal'] != NULL){
													echo "<img src='".base_url()."uploads/tours/thumb/".$getdata['tour_image_deal']."' alt='' width='120' height='77' />";
												}
												?>
                                            	<input type="file" name="imgdeal" id="imgdeal" size="30" />
                                            </div>
                                   		 </div>
										 <div class="form_items" style="margin-top:5px;">
                                    		<div class="form_items_left">Select category</div>
                                        	<div class="form_items_right">
                                            	<select name="cate_id" id="cate_id">
                                                <option value="">Please select</option>
                                                <?php
												foreach($category as $items){
													echo "<option value='".$items['cate_id']."'";
													//if($items['cate_id'] == $stt){
														//echo "selected='selected'";
													//}
													echo ">".$items['cate_name']."</option>";
												}
												?>
                                                </select>
                                                <div id="show_cagories" style="margin-top:10px;">
	                                            </div>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Short introduction</div>
                                        	<div class="form_items_right">
                                            	<textarea name="tour_short_info" id="" cols="27" rows="5"><?php echo $getdata['tour_short_info']?></textarea>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour image 1</div>
                                        	<div class="form_items_right">
                                            <?php
											if($getdata['tour_image1'] != NULL){
												echo "<img src='".base_url()."uploads/tours/thumb/".$getdata['tour_image1']."' alt='' width='120' height='77' />";
											}
											?>
                                            <input name="tour_image1" type="file" id="tour_image1" size="35" />
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour image 2</div>
                                        	<div class="form_items_right">
                                            <?php
											if($getdata['tour_image2'] != NULL){
												echo "<img src='".base_url()."uploads/tours/thumb/".$getdata['tour_image2']."' alt='' width='120' height='77' />";
											}
											?>
                                            <input name="tour_image2" type="file" id="tour_image2" size="35" />
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour image 3</div>
                                        	<div class="form_items_right">
                                            <?php
											if($getdata['tour_image3'] != NULL){
												echo "<img src='".base_url()."uploads/tours/thumb/".$getdata['tour_image3']."' alt='' width='120' height='77' />";
											}
											?>
                                            <input name="tour_image3" type="file" id="tour_image3" size="35" />
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour image 4</div>
                                        	<div class="form_items_right">
                                            <?php
											if($getdata['tour_image4'] != NULL){
												echo "<img src='".base_url()."uploads/tours/thumb/".$getdata['tour_image4']."' alt='' width='120' height='77' />";
											}
											?>
                                            <input name="tour_image4" type="file" id="tour_image4" size="35" />
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Album gallery</div>
                                        	<div class="form_items_right">
                                            <select name="tour_album" id="">
                                            <?php
											foreach($albums as $alb){
												echo "<option value='".$alb['album_id']."'";
												if($stt == $alb['album_id']){ echo "selected='selected'";}
												echo ">".$alb['album_name']."</option>";
											}
											?>
                                            </select>
                                            </div>
                                   		 </div>
                                         <div class="form_items" style="padding:3px 0px 3px 0px;margin-bottom:5px;">
                                        	<div id="shows">
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Fact sheet link</div>
                                        	<div class="form_items_right"><input name="tour_fact" type="text" id="tour_fact" value="<?php echo $getdata['tour_fact']?>" size="35" /></div>
                                   		 </div>
										 <div class="form_items">
                                    		<div class="form_items_left">Special Offer</div>
                                        	<div class="form_items_right"><input name="tour_promo_title" type="text" id="tour_promo_title" value="<?php echo $getdata['tour_promo_title']?>" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Special Offer Value</div>
                                        	<div class="form_items_right">
                                            <?php 
											$fck = new FCKeditor('tour_promo_val');
											$fck->BasePath = sBASEPATH;
											$fck->Value  = $getdata['tour_promo_val'];
											$fck->Width  = '100%';
											$fck->Height = 400;
											$fck->Create();
										   ?>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">About tour, introduction</div>
                                        	<div class="form_items_right">
                                            <?php 
											$fck = new FCKeditor('tour_info');
											$fck->BasePath = sBASEPATH;
											$fck->Value  = $getdata['tour_info'];
											$fck->Width  = '100%';
											$fck->Height = 400;
											$fck->Create();
										   ?>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Tour itinerary</div>
                                        	<div class="form_items_right">
                                            <?php 
											$fck = new FCKeditor('tour_ltinerary');
											$fck->BasePath = sBASEPATH;
											$fck->Value  = $getdata['tour_ltinerary'];
											$fck->Width  = '100%';
											$fck->Height = 400;
											$fck->Create();
										   ?>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                             <div class="form_items_left">What is include</div>
                                             <div class="form_items_right">
                                                 <?php
                                                 $fck = new FCKeditor('tour_include');
                                                 $fck->BasePath = sBASEPATH;
                                                 $fck->Value  = $getdata['tour_include'];
                                                 $fck->Width  = '100%';
                                                 $fck->Height = 400;
                                                 $fck->Create();
                                                 ?>
                                             </div>
                                         </div>
                                         <div class="form_items">
                                             <div class="form_items_left">Maps</div>
                                             <div class="form_items_right">
                                                 <?php
                                                 $fck = new FCKeditor('tour_map');
                                                 $fck->BasePath = sBASEPATH;
                                                 $fck->Value  = $getdata['tour_map'];
                                                 $fck->Width  = '100%';
                                                 $fck->Height = 400;
                                                 $fck->Create();
                                                 ?>
                                             </div>
                                         </div>
                                         <div class="form_items">
                                             <div class="form_items_left">Highlight</div>
                                             <div class="form_items_right">
                                                 <?php
                                                 $fck = new FCKeditor('tour_height');
                                                 $fck->BasePath = sBASEPATH;
                                                 $fck->Value  = $getdata['tour_height'];
                                                 $fck->Width  = '100%';
                                                 $fck->Height = 400;
                                                 $fck->Create();
                                                 ?>
                                             </div>
                                         </div>
                                      <div class="form_items">
                                   		<div class="form_items_left">&nbsp;</div>
                                        	<div class="form_items_right"><input type="submit" name="ok" value="Edit tour" class="magin"/></div>
                               		  </div>
                                    </form>
								</div>
							</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>